import React from 'react';
import './artist.less';
import API from '../../../api/index';
class Artist extends React.Component {
    state= {
        artist:[]
    }
    render() {
        return <div className='artist_box'>
           
            <div className="side_nav">
                <span>入驻歌手</span>
                <a href="#">查看全部></a>
            </div>
            <div className="artitem">
                <img src="http://p1.music.126.net/p9U80ex1B1ciPFa125xV5A==/5931865232210340.jpg?param=62y62" alt=""/>
                <div className="artitemdiv">
                    <h2>张惠妹aMEI</h2>
                    <p>台湾歌手张惠妹</p>
                </div>
            </div>
            <div className="artitem">
                <img src="http://p1.music.126.net/p9U80ex1B1ciPFa125xV5A==/5931865232210340.jpg?param=62y62" alt=""/>
                <div className="artitemdiv">
                    <h2>张惠妹aMEI</h2>
                    <p>台湾歌手张惠妹</p>
                </div>
            </div>
            <div className="artitem">
                <img src="http://p1.music.126.net/p9U80ex1B1ciPFa125xV5A==/5931865232210340.jpg?param=62y62" alt=""/>
                <div className="artitemdiv">
                    <h2>张惠妹aMEI</h2>
                    <p>台湾歌手张惠妹</p>
                </div>
            </div>
            <div className="artitem">
                <img src="http://p1.music.126.net/p9U80ex1B1ciPFa125xV5A==/5931865232210340.jpg?param=62y62" alt=""/>
                <div className="artitemdiv">
                    <h2>张惠妹aMEI</h2>
                    <p>台湾歌手张惠妹</p>
                </div>
            </div>
            <div className="artitem">
                <img src="http://p1.music.126.net/p9U80ex1B1ciPFa125xV5A==/5931865232210340.jpg?param=62y62" alt=""/>
                <div className="artitemdiv">
                    <h2>张惠妹aMEI</h2>
                    <p>台湾歌手张惠妹</p>
                </div>
            </div>
            <a href="#" className="arthref">申请成为网易音乐人</a>
        </div>;
    }
    componentDidMount() {
        API.myIndex.artist().then(data=>{
           let result = data;
           //console.log(result)
           /* this.setState({
            artist:result.map(item=>{
                let artistObj = {
                    
                }
            })
           }) */
       });
   };
}
export default Artist